import { request } from "./request";
// 发送验证码
export const sendCode = (data) => {
  return request({
    method: 'post',
    url: '/user/sendCode',
    data
  })
}

// 验证码登录
export const codeLogin = (data) => {
  return request({
    method: 'post',
    url: '/user/sendCode',
    data
  })
}


// 登录
export const pwdLogin = (data) => {
  return request({
    method: 'post',
    url: '/user/pwdLogin',
    data
  })
}
// 获取电动车品牌信息
export const getBicycleInfo = (params) => {
  return request({
    url: '/user/getBicycleInfo',
    params
  })
}

// 商品分类展示
export const keywordSearch = (params) => {
  return request({
    url: '/user/keywordSearch',
    params
  })
}

// 商品分类接口
export const brandSearch = (params) => {
  return request({
    url: '/user/brandSearch',
    params
  })
}

// 根据身份查询手机号是否存在
export const identityInfo = (data) => {
  return request({
    method:'post',
    url: '/user/identityInfo',
    data
  })
}